package com.zb.common.po.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;


public class CodeTable {
    private Integer id;
    private Integer pid;
    private String code;
    private String name;
    private Integer sort;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastUpdateTime;
    private List<CodeTable> childCodeTable = new ArrayList<CodeTable>();

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<CodeTable> getChildCodeTable() {
        return childCodeTable;
    }

    public void setChildCodeTable(List<CodeTable> childCodeTable) {
        this.childCodeTable = childCodeTable;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "pid:" + this.getPid() + ",code:" + this.getCode() + ",name:"
                + this.getName() + ",sort:" + this.getSort();
    }

}
